{include file="public/header" /}
{load href="__PLUGINS__bootstrap/bootstrap-table.min.css"}
{load href="__PLUGINS__bootstrap/bootstrap-table.min.js"}
<style>
    #des, #des input {
        width: 40px;
        text-align: center;
    }

    #id {
        width: 78px;
    }

    .bs-checkbox {
        width: 36px;
        height: 40px
    }

    .fixed-table-toolbar .columns, .fixed-table-toolbar .search {
        margin-left: 0;
        margin-top: 0
    }

    #title span {
        float: right;
    }

    .asdlkjasd {
        background: #1ab394;
        color: #fff
    }
    .th{
        background: deepskyblue;
        color: #fff;
    }
    .lab{

    }
    .lab.recharge{
        color: darkred;
    }
    .val{
        font-weight: bold;
        font-size: 20px;
    }
    .trbg{
        background: seagreen;
        color: #fff;
    }
    .example table{
        display: flex;
    }
    .example tbody{
        width: 50%;
    }
    .recharge_vip{
        color: green;
    }
    .recharge_flag{
        color: orangered;
    }
    .recharge_count{
        color: blueviolet;
    }
    .color-red{
        color: red;
    }
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content {:config('adminClass.main')}">
    <div class="ibox float-e-margins">
        {include file="public/tophead"}
        {include file="public/top" /}
        <div class="ibox-content">
            {include file="public/topsection"}
            <div class="row row-lg">
                <div class="col-sm-12">
                    <div class="fixed-table-toolbar">
                        <form method="get" action="" style="display: flex;">
                            <div class="pull-left search" style="display: flex;">
                                <input name="time" type="text" id="time" class="form-control layui-input" value="{present name='time'}{$time}{/present}" placeholder="时间" autocomplete="off" style="height:34px;width:180px;margin:0 10px;">
                                <div class="pull-right search">
                                    <button style="border-radius:0px; border:1px solid #e5e6e7;"
                                            class="btn btn-default btn-outline" type="submit">查询
                                    </button>
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="example">
                        <form class="form-horizontal">
                            <table data-toggle="table">
                                <tbody id="form">
                                    <tr class="class">
                                        <td class="th" align="center" colspan="4">充值分析
                                        </td>
                                    </tr>
                                    <tr class="class">
                                        <td width="12.5%" class="lab recharge_vip">VIP微信充值总额(元):
                                        </td>
                                        <td width="12.5%" class="val">{$data['vip_order_wechat_money']}
                                        </td>
                                        <td width="12.5%" class="lab recharge_vip">VIP微信充值笔数(笔):
                                        </td>
                                        <td width="12.5%" class="val">{$data['vip_order_wechat_num']}
                                        </td>
                                    </tr>
                                    <tr class="class">
                                        <td width="12.5%" class="lab recharge_vip">VIP支付宝充值总额(元):
                                        </td>
                                        <td width="12.5%" class="val">{$data['vip_order_alipay_money']}
                                        </td>
                                        <td width="12.5%" class="lab recharge_vip">VIP支付宝充值笔数(笔):
                                        </td>
                                        <td width="12.5%" class="val">{$data['vip_order_alipay_num']}
                                        </td>
                                    </tr>
                                    <tr class="class">
                                        <td width="12.5%" class="lab recharge_flag">Flag微信充值总额(元):
                                        </td>
                                        <td width="12.5%" class="val">{$data['flag_order_wechat_money']}
                                        </td>
                                        <td width="12.5%" class="lab recharge_flag">Flag微信充值笔数(笔):
                                        </td>
                                        <td width="12.5%" class="val">{$data['flag_order_wechat_num']}
                                        </td>
                                    </tr>
                                    <tr class="class">
                                        <td width="12.5%" class="lab recharge_flag">Flag支付宝充值总额(元):
                                        </td>
                                        <td width="12.5%" class="val">{$data['flag_order_alipay_money']}
                                        </td>
                                        <td width="12.5%" class="lab recharge_flag">Flag支付宝充值笔数(笔):
                                        </td>
                                        <td width="12.5%" class="val">{$data['flag_order_alipay_num']}
                                        </td>
                                    </tr>
                                    <tr class="class">
                                        <td width="12.5%" class="lab recharge">微信充值总额(元):
                                        </td>
                                        <td width="12.5%" class="val">{$data['recharge_wechat_sum_price']}
                                        </td>
                                        <td width="12.5%" class="lab recharge">微信充值笔数(笔):
                                        </td>
                                        <td width="12.5%" class="val">{$data['recharge_wechat_count']}
                                        </td>
                                    </tr>
                                    <tr class="class">
                                        <td width="12.5%" class="lab recharge">支付宝充值总额(元):
                                        </td>
                                        <td width="12.5%" class="val">{$data['recharge_alipay_sum_price']}
                                        </td>
                                        <td width="12.5%" class="lab recharge">支付宝充值笔数(笔):
                                        </td>
                                        <td width="12.5%" class="val">{$data['recharge_alipay_count']}
                                        </td>
                                    </tr>
                                    <tr class="class">
                                        <td width="12.5%" class="lab recharge">充值总额（元）：
                                        </td>
                                        <td width="12.5%" class="val">{$data['recharge_sum_price']}
                                        </td>
                                        <td width="12.5%" class="lab recharge">充值总笔数（笔）：
                                        </td>
                                        <td width="12.5%" class="val">{$data['recharge_count']}
                                        </td>
                                    </tr>
                                    <tr class="class">
                                        <td width="12.5%" class="lab recharge_count">微信支付入账总额(元):
                                        </td>
                                        <td width="12.5%" class="val">{$data['vip_order_wechat_money'] + $data['flag_order_wechat_money'] + $data['recharge_wechat_sum_price']}
                                        </td>
                                        <td width="12.5%" class="lab recharge_count">微信支付入账笔数(笔):
                                        </td>
                                        <td width="12.5%" class="val">{$data['vip_order_wechat_num'] + $data['flag_order_wechat_num'] + $data['recharge_wechat_count']}
                                        </td>
                                    </tr>
                                    <tr class="class">
                                        <td width="12.5%" class="lab recharge_count">支付宝支付入账总额(元):
                                        </td>
                                        <td width="12.5%" class="val">{$data['vip_order_alipay_money'] + $data['flag_order_alipay_money'] + $data['recharge_alipay_sum_price']}
                                        </td>
                                        <td width="12.5%" class="lab recharge_count">支付宝支付入账笔数(笔):
                                        </td>
                                        <td width="12.5%" class="val">{$data['vip_order_alipay_num'] + $data['flag_order_alipay_num'] + $data['recharge_alipay_count']}
                                        </td>
                                    </tr>
                                    <tr class="class">
                                        <td width="12.5%">充值金币总额:
                                        </td>
                                        <td width="12.5%" class="val">{$data['recharge_sum_volley']}
                                        </td>
                                        <td width="12.5%">金币对人民币比例：
                                        </td>
                                        <td width="12.5%" class="val">{:_money($data['recharge_rate'])}
                                        </td>
                                    </tr>
                                    <tr class="class">
                                        <td width="12.5%">系统入账金币：
                                        </td>
                                        <td width="12.5%" class="val">{$data['income_volley_sum']}
                                        </td>
                                        <td width="12.5%">每笔均值(元):
                                        </td>
                                        <td width="12.5%" class="val">{:_money($data['recharge_avg_price'])}
                                        </td>
                                    </tr>
                                    <tr class="class">
                                        <td width="12.5%">系统总剩余金币:
                                        </td>
                                        <td width="12.5%" class="val">{$data['user_volley_all']}
                                        </td>
                                        <td width="12.5%">后台充金币(含贵族):
                                        </td>
                                        <td width="12.5%" class="val">{$data['admin_recharge_volley']}
                                        </td>
                                    </tr>
                                    <tr class="class">
                                        <td width="12.5%">昨日总剩余金币:
                                        </td>
                                        <td width="12.5%" class="val">{$data['user_volley_all_prev']}
                                        </td>
                                        <td width="12.5%">退款金币:
                                        </td>
                                        <td width="12.5%" class="val">
                                        </td>
                                    </tr>
                                    <tr class="class">
                                        <td width="12.5%">金币差值：
                                        </td>
                                        <td width="12.5%" class="val">{$data['differ_volley_sum']}
                                        </td>
                                        <td width="12.5%">系统赠送金币：
                                        </td>
                                        <td width="12.5%" class="val">{$data['system_gift_volley_2']}
                                        </td>
                                    </tr>
                                    <tr class="class">
                                        <td width="12.5%">信息未回复返回金币:
                                        </td>
                                        <td width="12.5%" class="val">{$data['refund_sum']}
                                        </td>
                                        <td width="12.5%">系统实送金币:
                                        </td>
                                        <td width="12.5%" class="val {if condition='$data["system_gift_volley"] > 1500'}color-red{/if}">{$data['system_gift_volley']}
                                        </td>
                                    </tr>
                                    <tr class="class">
                                        <td width="12.5%">金币实际消耗:
                                        </td>
                                        <td width="12.5%" class="val">{$data['real_consume_volley']}
                                        </td>
                                        <td width="12.5%">积分实际消耗:
                                        </td>
                                        <td width="12.5%" class="val">{$data['real_consume_score']}
                                        </td>
                                    </tr>
                                </tbody>
                                <tbody id="form">
                                    <tr class="class">
                                        <td class="th" align="center" colspan="4">积分入账分析
                                        </td>
                                    </tr>
                                    <tr class="class">
                                        <td width="12.5%">注销充值账号数(人):
                                        </td>
                                        <td width="12.5%" class="val">{$data['recycle_count']}
                                        </td>
                                        <td width="12.5%">充值理论上赠送积分:
                                        </td>
                                        <td width="12.5%" class="val">{:_money($data['recharge_give_score'])}
                                        </td>
                                    </tr>
                                    <tr class="class">
                                        <td width="12.5%">金币消耗:
                                        </td>
                                        <td width="12.5%" class="val">{$data['consume_volley_sum']}
                                        </td>
                                        <td width="12.5%">消费理论上产生积分:
                                        </td>
                                        <td width="12.5%" class="val">{:_money($data['consume_give_score'])}
                                        </td>
                                    </tr>
                                    <tr class="class">
                                        <td width="12.5%">实际消费金币:
                                        </td>
                                        <td width="12.5%" class="val">{$data['real_consume_volley_sum']}
                                        </td>
                                        <td width="12.5%">理论上产生总积分:
                                        </td>
                                        <td width="12.5%" class="val">{:_money($data['sum_score'])}
                                        </td>
                                    </tr>
                                    <tr class="class">
                                        <td width="12.5%">系统入账积分:
                                        </td>
                                        <td width="12.5%" class="val">{$data['income_score_sum']}
                                        </td>
                                        <td width="12.5%">过往充值补积分:
                                        </td>
                                        <td width="12.5%" class="val">{$data['recharge_makeup_score']}
                                        </td>
                                    </tr>
                                    <tr class="class">
                                        <td width="12.5%">提现回退积分:
                                        </td>
                                        <td width="12.5%" class="val">{$data['refund_score_sum']}
                                        </td>
                                        <td width="12.5%">理论与实际积分差值:
                                        </td>
                                        <td width="12.5%" class="val">{:_money($data['diff_real_score'])}
                                        </td>
                                    </tr>
                                    <tr class="class">
                                        <td width="50%" class="trbg" align="center" colspan="4">
                                            {if condition="$data['diff_real_score'] >= 0"}
                                            实际获得积分未高于理论值
                                            {else}
                                            实际获得积分高于理论值
                                            {/if}
                                        </td>
                                    </tr>
                                    <tr class="class">
                                        <td width="12.5%">当日理论剩余总积分
                                        </td>
                                        <td width="12.5%" class="val">{$data['user_score_all_cn']}
                                        </td>
                                        <td colspan="2">
                                        </td>
                                    </tr>
                                    <tr class="class">
                                        <td width="12.5%">剩余总积分:
                                        </td>
                                        <td width="12.5%" class="val">{$data['user_score_all']}
                                        </td>
                                        <td width="12.5%">昨日剩余总积分:
                                        </td>
                                        <td width="12.5%" class="val">{$data['user_score_all_prev']}
                                        </td>
                                    </tr>
                                    <tr class="class">
                                        <td width="12.5%">总提现金额:
                                        </td>
                                        <td width="12.5%" class="val">{$data['withdraw_records_money']}
                                        </td>
                                        <td width="12.5%">提现理论积分:
                                        </td>
                                        <td width="12.5%" class="val">{$data['withdraw_records_money_cn']}
                                        </td>
                                    </tr>
                                    <tr class="class">
                                        <td width="12.5%">总提现积分:
                                        </td>
                                        <td width="12.5%" class="val">{$data['withdraw_records_money_en']}
                                        </td>
                                        <td width="25%" colspan="2">
                                        </td>
                                    </tr>
                                    <tr class="class">
                                        <td width="12.5%">利润率:
                                        </td>
                                        <td width="12.5%" class="val">{:_money($data['lirun'] * 100) . '%'}
                                        </td>
                                        <td width="12.5%">月利润率均值:
                                        </td>
                                        <td width="12.5%" class="val">{:_money($data['month_lirun'] * 100) . '%'}
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}
{load href="__PLUGINS__iCheck/icheck.min.js"}
{load href="__PLUGINS__iCheck/custom.css"}

<script type="text/javascript">

    layui.use(['laydate'], function(){
        var laydate = layui.laydate;

        laydate.render({
            elem: '#time' //指定元素
            ,type: 'date'
            ,trigger: 'click'
        });
    })

</script>
 